<template>
	<view class="page">
		<view class="content">
			<view class="content_item">
				<image src="../../static/balance.png" mode=""></image>
				<text>余额</text>
				<text class="item_text">¥{{balance}}</text>
			</view>

			<view class="content_item">
				<image src="../../static/credits.png" mode=""></image>
				<text>积分</text>
				<text class="item_text">{{credits}}</text>
			</view>

			<view class="content_item" @click="jumToCoupons">
				<image src="../../static/coupon.png" mode=""></image>
				<text>优惠券</text>
				<text class="item_text">></text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				balance: 120,
				credits: 12
			}
		},
		methods: {
			jumToCoupons: function(){
				uni.navigateTo({
					url: '../coupons/coupons'
				})
			}
		}
	}
</script>

<style>
	.page {

		width: 750rpx;
		height: 1334rpx;
		/* height: 1020rpx; */
		padding-bottom: 60px;
		padding-top: 20px;
		box-sizing: border-box;
		background-color: #F3F5F7;
	}

	.content {
		width: 702rpx;
		height: 362rpx;
		margin-left: auto;
		margin-right: auto;
		background-color: #FFFFFF;
		border-radius: 32rpx;
	}

	.content_item {
		width: 100%;
		height: 120rpx;
		line-height: 120rpx;
		padding-left: 28rpx;
		box-sizing: border-box;
		font-size: 28rpx;
		color: #898A8F;
	}

	.content_item image {
		width: 30rpx;
		height: 30rpx;
		vertical-align: middle;
		margin-right: 24rpx;
	}

	.item_text {
		width: 70rpx;
		height: 120rpx;
		float: right;
		margin-right: 34rpx;
		color: #222222;
		display: flex;
		justify-content: flex-end;
	}
</style>
